package model;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Set;


/**
 * The persistent class for the target database table.
 * 
 */
@Entity
public class Target implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int targetid;

	private int activestatus;

	private String info;

	private String location;

	private String mchtinfo;

	private String targetname;

	//bi-directional many-to-one association to Apply
	@OneToMany(mappedBy="targetBean")
	private Set<Apply> applies;

	//bi-directional many-to-one association to CateTarget
	@OneToMany(mappedBy="target")
	private Set<CateTarget> cateTargets;

	//bi-directional many-to-one association to Mycomment
	@OneToMany(mappedBy="targetBean")
	private Set<Mycomment> mycomments;

	//bi-directional many-to-one association to Mylike
	@OneToMany(mappedBy="targetBean")
	private Set<Mylike> mylikes;

	//bi-directional many-to-one association to Myuser
    @ManyToOne
	@JoinColumn(name="merchant")
	private Myuser myuser;

	//bi-directional many-to-one association to TargetTag
	@OneToMany(mappedBy="targetBean")
	private Set<TargetTag> targetTags;

    public Target() {
    }

	public int getTargetid() {
		return this.targetid;
	}

	public void setTargetid(int targetid) {
		this.targetid = targetid;
	}

	public int getActivestatus() {
		return this.activestatus;
	}

	public void setActivestatus(int activestatus) {
		this.activestatus = activestatus;
	}

	public String getInfo() {
		return this.info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public String getLocation() {
		return this.location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getMchtinfo() {
		return this.mchtinfo;
	}

	public void setMchtinfo(String mchtinfo) {
		this.mchtinfo = mchtinfo;
	}

	public String getTargetname() {
		return this.targetname;
	}

	public void setTargetname(String targetname) {
		this.targetname = targetname;
	}

	public Set<Apply> getApplies() {
		return this.applies;
	}

	public void setApplies(Set<Apply> applies) {
		this.applies = applies;
	}
	
	public Set<CateTarget> getCateTargets() {
		return this.cateTargets;
	}

	public void setCateTargets(Set<CateTarget> cateTargets) {
		this.cateTargets = cateTargets;
	}
	
	public Set<Mycomment> getMycomments() {
		return this.mycomments;
	}

	public void setMycomments(Set<Mycomment> mycomments) {
		this.mycomments = mycomments;
	}
	
	public Set<Mylike> getMylikes() {
		return this.mylikes;
	}

	public void setMylikes(Set<Mylike> mylikes) {
		this.mylikes = mylikes;
	}
	
	public Myuser getMyuser() {
		return this.myuser;
	}

	public void setMyuser(Myuser myuser) {
		this.myuser = myuser;
	}
	
	public Set<TargetTag> getTargetTags() {
		return this.targetTags;
	}

	public void setTargetTags(Set<TargetTag> targetTags) {
		this.targetTags = targetTags;
	}
	
}